package com.qztc.hire_end_dto.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@TableName("notice")
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Schema(title = "公告信息")
public class Notice extends Model<Notice> implements Serializable {
    @Schema(title = "公告id")
    @TableId(value = "notice_id")
    private int noticeId;

    @Schema(title = "公告标题")
    @TableField(value = "notice_title")
    private String noticeTitle;

    @Schema(title = "公告内容")
    @TableField(value = "notice_content")
    private String noticeContent;

    @Schema(title = "公告发布人")
    @TableField(value = "notice_publisher")
    private String noticePublisher;

    @Schema(title = "公告发布日期")
    @TableField(value = "notice_publishdate")
    private String noticePublishDate;

    @Schema(title = "公告创建日期")
    @TableField(value = "notice_createdate")
    private String noticeCreateDate;

    @Schema(title = "公告类型id，外键")
    @TableField(value = "notice_typeid")
    private int noticeTypeId;
}